package chapter_six.text67_4.builder;

/**
 * Data time:2021/9/27 15:29
 * StudentID:2019112118
 * Author:hgw
 * Description: 台式机建造者，充当具体建造者
 */
public class ServerBuilder extends ComputerBuilder{
    public void buildCpu() {
        computer.setCpu("酷睿i10");
    }

    public void buildMemory() {
        computer.setMemory("金士顿8G*8");
    }

    public void buildHardDisk() {
        computer.setHardDisk("西部数据1TB*12");
    }

    public void buildHost() {
        computer.setHost("服务器机箱");
    }

    public void buildMonitor() {
        computer.setMonitor("空");
    }
    //覆盖钩子方法
    public boolean isMonitor(){
        return false;
    }
}
